home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 1
/
LIGHT-ROM 1 (Amiga Library Services)(1994).iso
/
ffdisks
/
d880.lha
/
Oberon
/
O3Demo2.lzh
/
Definitions
/
Concurrency.def
< prev
next >
Wrap
Text File
|
1993-01-15
|
537b
|
22 lines
DEFINITION Concurrency;
IMPORT
BT := BasicTypes,
Dos;
TYPE
Process = POINTER TO ProcessDesc;
ProcessProc = PROCEDURE(data: BT.ANY): BT.ANY;
ProcessDesc = RECORD (BT.ANYDesc)
dosProcess : Dos.ProcessPtr;
PROCEDURE (p:Process) Wait(): BT.ANY;
PROCEDURE (p:Process) isRunning(): BOOLEAN;
END;
PROCEDURE NewProcessX(proc: ProcessProc; data: BT.ANY; stackSize: LONGINT; priority: SHORTINT): Process;
PROCEDURE NewProcess(proc: ProcessProc; data: BT.ANY): Process;
PROCEDURE WaitForAllProcesses;
END Concurrency.